//
//  Passenger.h
//  College Demo
//
//  Created by mashujun on 2022/7/18.
//

#import "Person.h"

NS_ASSUME_NONNULL_BEGIN

@interface Orders : NSObject
@property (nonatomic, copy) Address *Destination;
@property (nonatomic, copy) NSString *Train;
@property (nonatomic, copy) NSString *TimeTable;
@property (nonatomic, copy) CGFloat  Price;
- (void)initOrder:(Address *) Destination;
- (void)createOrderByAddress:(Address *) Destination;
@end

@interface Passenger : Person
// @property 属性
// 是否年满 18 岁
@property (nonatomic,readonly) Bool AgeRange;
// 历史订单 （数组）
@property (nonatomic,copy) NSMutableArray * HistoryOrder;
// 未出行订单 （数组）
@property (nonatomic,copy) NSMutableArray *  WaitingOrder;
// Function 方法
//初始化
- (void) init :(Bool) AgeRange : (NSMutableArray *) HistoryOrder: (NSMutableArray *) WaitingOrder;
// 去订票
- (void) bookTicket: :(Address *)Destination;
// 去检票
- (void) checkTicket :(Orders *)Order; 
@end

NS_ASSUME_NONNULL_END
